package logger

import (
	"github.com/gin-gonic/gin"

	loggerInterface "go-toy/middleware/logger/interf"
)

type NoneWriter struct {
}

// Return the gin.HandlerFunc for the middleware program
func (w *NoneWriter) Handle() gin.HandlerFunc {
	return func(gc *gin.Context) {
		gc.Next()
	}
}

var NoneWriterInstance loggerInterface.Writer = &NoneWriter{}
